<?php

class StartDefault extends Controller {

	function StartDefault()
	{
		parent::Controller();	
	}
	
	function index()
	{
    $this->load->database();
    $this->db->where(array('linkname' => trim(join('/', $this->uri->segments), '/')));
    $query = $this->db->get('section');
    if ($query->num_rows() != 1)
    {
      show_404();
    }
    $section = $query->row_array();
    $this->load->view('webpage', array('section' => $section));
  }
}

/* End of file startdefault.php */
/* Location: ./system/application/controllers/startdefault.php */